<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 循环嵌套</title>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="app">
  <ol>
    <li >
      {{ sites[0].name }}
    </li>
	  <li>
      {{ sites[1].name }}
    </li>
  </ol>
</div>

<template>
    <Switch v-model="switch1" @on-change="change" />
</template>
<script>
    export default {
        data () {
            return {
                switch1: false
            }  
        },
        methods: {
            change (status) {
                this.$Message.info('开关状态：' + status);
            }
        }
    }
</script>

</script>
</body>
</html>